package com.ding.server.impl;

import com.ding.mapper.UserMapper;
import com.ding.model.User;
import com.ding.server.IUserServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by KOMLIN on 2019/2/14.
 */

@Service
@Transactional
public class userServerImpl implements IUserServer {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUserById(int id) {
        return userMapper.selectByPrimaryKey(id);
    }

    @Override
    public boolean add(User user) {
        return false;
    }
}
